import axios from '../axios'

export let getUsersData = (params) => {
    return axios({
        method: 'get',
        url: '/users/user-list',
        params
    })
}

export let addUserData = (data) => {
    console.log(data)
    return axios({
        method: "post",
        url: '/users/save-user',
        data
    })
}

export let editUserData = (data) => {
    return axios({
        method: 'post',
        url: '/users/update-user',
        data
    })
}

export let delUserData = (id) => {
    return axios({
        method: 'get',
        url: '/users/delete-user',
        params: { id }
    })
}